﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LingYue_PictureProcessCenter.Core.PictureInfo;
using LingYue_PictureProcessCenter.Core.HardwareInfo;

namespace LingYue_PictureProcessCenter.Core.ProcessInfo
{
    public class RealEsrProcessInfoImpl : IProcessInfo
    {
        public RealEsrProcessInfoImpl(RealEsrPictureInfoImpl Info)
        {
            HardwareInfo = new HardwareInfo.HardwareInfo();
            // 默认的文件执行地址
            ExecuteFilePath = ".\\realesrgan\\realesrgan-ncnn-vulkan.exe";
            PictureInfo = Info;
        }

        public string GenerateCommand()
        {
            return String.Format("{0} {1}", ExecuteFilePath, PictureInfo.GetCommandString());
        }

        public HardwareInfo.HardwareInfo HardwareInfo { get; set; }
        public PictureInfo.RealEsrPictureInfoImpl PictureInfo { get; set; }
        public string ExecuteFilePath { get; set; }
    }
}